<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script src="../../jQuery/jQuery.min.js"></script>
  <title>Document</title>
</head>

<body>
  <script>
    const p = new Promise((resolve, reject) => {
      $.ajax({
        method: 'GET',
        url: 'https://3g.163.com/touch/reconstruct/article/lis6OEOwangning/5-10.html',
        dataType: 'jsonp',
        jsonpCallback: 'artiList',
        success(res) {
          resolve(res);
        },
        error(e) {
          reject(e.status);
        }
      })
    });
    // 简化写法
    p.then(value => console.log(value), reason => console.error(reason))
    // 指定回调
    /* 常规写法
     p.then(function (value) {
       console.log(value);
     }, function (reason) {
       console.error(reason);
     }) 
     */
  </script>

</body>

</html>